<?php
/**
 * Copyright (c) 2006-2007, Julien PORTALIER
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright    Copyright (c) 2006-2007, Julien PORTALIER
 * @link         http://featherphp.googlecode.com/
 * @license      http://www.opensource.org/licenses/mit-license.php The MIT License
 */

# debug & errors
define(DEBUG, 2);
error_reporting(DEBUG ? E_ALL : false);

define('CR', "\r");
define('LF', "\n");
define('CRLF', CR.LF);

/**
 * Core framework's configuration.
 */
class Core
{
	const version      = '1.0.0';
	const maintenance  = false;
	
	# Librairies, Components, Helpers and Behaviors
	const  database    = true; 
	static $libs       = array('http', 'time', 'cookies');
	static $components = array('Config', 'Session', 'Locale');
	static $helpers    = array('xhtml', 'form', 'javascript');
	static $behaviors  = array();
	const  config_autoload = true;
	
	# Sessions
	const session_auto   = true;
	const session_cookie = 'SESSION_ID';
	const session_expire = '+3 hours';
	const session_path   = '/';
	const session_domain = null;
	const session_string = 'fdcce5a99626576d8a69a93b2d57a924';
	
	# Locale
	const charset         = 'UTF-8';
	const locale_default  = 'fr';
	const locale_timezone = 'Europe/Paris';
	
	# Cache
#	const cache_lifetime  = DEBUG ? '+1 second' : '+1 day'; # '+1 hour'
	const cache_lifetime  = '+30 seconds';
	const compress_css    = false;
	const compress_js     = false;
}

# charset
ini_set('default_charset', Core::charset);

# mb
mb_language('uni');
mb_internal_encoding(Core::charset);
if(extension_loaded('mbstring'))
	ini_set('mbstring.func_overload', 7);

# gzip output
ob_start("ob_gzhandler");
?>